<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$catlist= $pages->getpageCategories();
$categoryCount = count($catlist);
$div="";
if($categoryCount>0){

    for($i=0;$i<$categoryCount;$i++){
        $images="";
        if(strlen($catlist[$i]->picture)>3){
        $images.="<img src='".$HOME_URL."resources/image.php?im=".$catlist[$i]->picture."&s=150' title='".$catlist[$i]->category."' alt='".$catlist[$i]->category."' class='imgleft' />";
        }
        $url =$catlist[$i]->getURL() ;

        $div.="<div class='cat_list $listname'>
                    ".$fxn->showAdminUpdate($catlist[$i]->contentid,"cat",$catlist[$i]->parentId);
		if(strlen($images)>0)
		$div.="<a href='$url'>".$images."</a>";
		
                $div.="<h2><a href='".$url."' title='".$catlist[$i]->category."'>".$catlist[$i]->category."</a></h2>";
        $div.="<div class='opt'>".$catlist[$i]->getCatExtraInfo()."</div>".$catlist[$i]->summary."
                <a href='".$url."' class='readmore' title='Readmore about ".$catlist[$i]->category."'>readmore</a>
                <div class='clearboth'></div>
</div>"
        ;


    }
}
echo $catNav->getPageRange().$div. $catNav->getNavigator();

?>
